const int analogOutPin=6;  
double ledLight=3.1415926/256;



void setup() {
  // put your setup code here, to run once:
pinMode(analogOutPin, OUTPUT);
}

void loop() {

   analogWrite(analogOutPin, 255*sin(ledLight));
   if(ledLight == 256.00)
   ledLight = 0;
   else
   ledLight++;

  // put your main code here, to run repeatedly:

}
